package ${rootPkg}.hystrix;

import ${rootPkg}.entity.${bClassName};
import ${rootPkg}.fegin.${bClassName}Fegin;
import com.unbox.common.response.UnboxResponse;
import com.unbox.common.table.UnBoxPage;
import org.springframework.stereotype.Component;
import java.util.List;

/**
 * <p>
 * <${tableComment}业务熔断配置
 * </p>
 *
 * @author 王振宇
 * @since ${.now?string('yyyy-MM-dd')}
 */
@Component
public class ${bClassName}Hystrix implements ${bClassName}Fegin {

    @Override
    public UnboxResponse<UnBoxPage> getPageList(${bClassName} ${sClassName}, Integer pageNo, Integer pageSize) {
        return new UnboxResponse
                .Builder<UnBoxPage>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<List<${bClassName}>> getList(${bClassName} ${sClassName}) {
        return new UnboxResponse
                .Builder<List<${bClassName}>>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<${bClassName}> info(${bClassName} ${sClassName}) {
        return new UnboxResponse
                .Builder<${bClassName}>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<List<${bClassName}>> ids${bClassName}s(List<Integer> ids) {
        return new UnboxResponse
                .Builder<List<${bClassName}>>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> save(${bClassName} ${sClassName}) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> batchSave(List<${bClassName}> ${sClassName}s) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> update(${bClassName} ${sClassName}) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> batchUpdate(List<${bClassName}> ${sClassName}s) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> delete(${bClassName} ${sClassName}) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> deleteBatch(List<Integer> ids) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }
}
